package com.we823.cms.controller.tools;

import java.io.IOException;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import com.baidu.ueditor.ActionEnter;

@Controller
@RequestMapping("ueditor/jsp")
public class UeditorController {
	
	@RequestMapping("controller")
	public String controller(HttpServletRequest request,HttpServletResponse response) throws IOException {
		String rootPath = request.getServletContext().getRealPath( "/" );
		
		response.getWriter().write( new ActionEnter( request, rootPath ).exec() );
		return null;
	}
}
